package com.woniu.api;

import com.woniu.dto.CheckPriceDto;
import com.woniu.dto.CheckPriceListDto;
import com.woniu.param.CreateOrModifyCheckPriceParam;
import com.woniu.param.DeleteCheckPriceParam;
import com.woniu.param.QueryCheckPriceParam;
import com.woniu.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient(value = "check", contextId = "checkPrice", path = "checkPrice")
@Api(tags = "检查价格")
public interface HisCheckPriceAPI {

    //创建或修改检查项目
    @ApiOperation("创建或修改检查项目")
    @PostMapping("/createCheckPrice")
    Result<CheckPriceDto> createCheckPrice(@RequestBody CreateOrModifyCheckPriceParam createOrmodifyCheckPriceParam);

    //查询检查项目价格
    @ApiOperation("查询检查项目价格")
    @PostMapping("/queryCheckPrice")
    Result<CheckPriceListDto> queryCheckPrice(@RequestBody QueryCheckPriceParam queryCheckPriceParam);

    //删除
    @ApiOperation("删除")
    @PostMapping("/deleteCheckPrice")
    Result deleteCheckPrice(@RequestBody DeleteCheckPriceParam deleteCheckPriceParam);


}
